package com.macro.mall.ums.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * 会员微信
 *
 * @author xuyanjun
 * @date 2019-12-08
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
@TableName("ums_member_wx")
public class WxMemberEntity {

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 最后更新时间
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    /**
     * 用户id
     */
    @TableField(value = "member_id")
    private Long memberId;

    /**
     * 微信openId
     */
    @TableField(value = "wx_open_id")
    private String wxOpenId;

    /**
     * 微信unionId
     */
    @TableField(value = "wx_union_id")
    private String wxUnionId;

    /**
     * 微信头像地址
     */
    @TableField(value = "wx_head_img_url")
    private String wxHeadImgUrl;

    /**
     * 微信昵称
     */
    @TableField(value = "wx_nickname")
    private String wxNickname;

    /**
     * 用户手机号
     */
    @TableField(value = "wx_mobile_no")
    private String wxMobileNo;

    /**
     * 微信号
     */
    @TableField(value = "wx_no")
    private String wxNo;

    /**
     * 创建时ip地址
     */
    @TableField(value = "create_ip")
    private String createIp;

    /**
     * 用户所在省
     */
    @TableField(value = "wx_province")
    private String wxProvince;

    /**
     * 用户所在市
     */
    @TableField(value = "wx_city")
    private String wxCity;

    /**
     * 用户所在县
     */
    @TableField(value = "wx_country")
    private String wxCountry;

    /**
     * 删除标记：0 未删除 1 已删除
     */
    @TableLogic
    @TableField(value = "delete_status")
    private Integer deleteStatus;

    /**
     * 来源类型
     */
    @TableField(value = "source_type")
    private Integer sourceType;

}